package ly.gupao.edu.java8.excemple2_4;

import ly.gupao.edu.java8.Apple;

import java.util.List;
import java.util.concurrent.Callable;

/**
 * @author: liyang
 * @date：2018/9/3 0003
 * describe：
 */
public class TestLambda {

    public static void main(String[] args) throws Exception {

        process(() -> {});
        System.out.println(fetch().call());
    }

    public static void process(Runnable runnable){
        runnable.run();
    }

    public static Callable<Integer> fetch(){
        return () -> new Integer(10);
    }


}
